from ultralytics import YOLO
print("import 完成")
# Load a pretrained YOLO11n model
print("设置cpu")
# 显式指定使用CPU
model = YOLO("yolo11n-pose.pt")
model.to('cpu')  
print("模型完成")
# Define remote image or video URL
source = "bus.jpg"
print("开始re")
# Run inference on the source
results = model(source, show =True)  # list of Results objects